package com.wangyu.talents.web.system.role.service.impl;

import com.wangyu.talents.core.service.impl.BaseServiceImpl;
import com.wangyu.talents.web.system.role.mapper.RoleMapper;
import com.wangyu.talents.web.system.role.model.Role;
import com.wangyu.talents.web.system.role.service.RoleService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 角色服务层实现
 *
 * @author wangyu
 * @Date 2018-09-03 22:15
 */
@Service("roleService")
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService {

  @Autowired
  private RoleMapper roleMapper;

  @Override
  public List<Role> findUserRoles(Long userId) {
    return roleMapper.findUserRoles(userId);
  }
}
